
<style type="text/css">
      body {
      	background-color: #f5f5f5;
      }

      .container {
      	 

      }

      .form-signin {
      	opacity: 0.9;
        max-width: 300px;
        padding: 19px 29px 29px;
        margin: 0 auto 5px;
        background-color: #fff;
        border: 1px solid #e5e5e5;
        -webkit-border-radius: 5px;
           -moz-border-radius: 5px;
                border-radius: 5px;
        -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.05);
           -moz-box-shadow: 0 1px 2px rgba(0,0,0,.05);
                box-shadow: 0 1px 2px rgba(0,0,0,.05);
      }
      .form-signin .form-signin-heading,
      .form-signin .checkbox {
        margin-bottom: 10px;
      }


      .form-register {
        opacity: 0.9;
        max-width: 300px;
        padding: 5px 29px 20px;
        margin: 0 auto 20px;
        background-color: #fff;
        border: 1px solid #e5e5e5;
        -webkit-border-radius: 5px;
           -moz-border-radius: 5px;
                border-radius: 5px;
        -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.05);
           -moz-box-shadow: 0 1px 2px rgba(0,0,0,.05);
                box-shadow: 0 1px 2px rgba(0,0,0,.05);
      }

      .header {
        padding-left: 23%;
      	height: 40px;
      	margin-bottom: 0px;
      	background-color: #006dcc;
    	 *background-color: #0044cc;
    	  background-image: -moz-linear-gradient(top, #0088cc, #0044cc);
    	  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0044cc));
    	  background-image: -webkit-linear-gradient(top, #0088cc, #0044cc);
    	  background-image: -o-linear-gradient(top, #0088cc, #0044cc);
    	  background-image: linear-gradient(to bottom, #0088cc, #0044cc);
    	  background-repeat: repeat-x;
    	  border-color: #0044cc #0044cc #002a80;
    	  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
      }
      .wrapper {
        height: 100%;
      }
      .content {
        height: 100%;  
        margin-top: 10px;
        -moz-box-shadow: 0 0 10px rgba(0,0,0,0.5); /* Для Firefox */
        -webkit-box-shadow: 0 0 10px rgba(0,0,0,0.5); /* Для Safari и Chrome */
        box-shadow: 0 0 10px rgba(0,0,0,0.5); /* Параметры тени */

        margin-left: 23%;
        width:700px;      
        padding: 10px;
        background-color: rgba(100, 100, 255, 0.1);
        border-color: rgba(0, 0, 0, 0.1) rgba(255, 0, 255, 0.1) rgba(255, 255, 0, 0.25);
      }

      .search {
        padding-top: 5px;
        margin-left: 100px;
        float:left;
      }
      
      .profile {
        float:right;
        color:white;
        margin-right: 10px;
        margin-top: 7px;
        font-weight: bold;
      }
      .logout {
        float:right;
        color:white;
        margin-right: 100px;
        margin-top: 7px;
        font-weight: bold;
      }
</style>


<div class="header">
 <ul class="nav nav-tabs">
    <li><%= link_to "Home", {:action=>"mainpage"} %></li>
        <li><%= link_to "Calendar", {:action=>"calendar"} %></li>
        <li><%= link_to "My Activities", {:action=>"myactivities"} %></li>        
                <li class="active"><%= link_to "Groups", {:action=>"groups"} %></li>        
        <li><%= link_to "Students", {:action=>"students"} %></li>            
    <li><%= link_to "To approve #{@users.size}", {:action=>"approve"} %></li>
    <li><%= link_to "Profile", {:action=>"profile",:id=>session[:userid]} %></li>
    <li><%= link_to "Log out", {:action=>"logout"} %></li>
  </ul>
  
   
</div>
<div class="wrapper">

<div class="content">
  <div class="post">
  	<%= form_tag({:controller => "portal", :action => "saveeditedgroup"}, :method => "post", :class => "form-signin") do %>
		<input type="text" class="input-block-level" name="name" value="<%= @group.name %>"/>
		<input type="hidden" name="group" value="<%= @group.id %>"/>
	<select name="faculty" placeholder="Faculty">
	<% if (@group.faculty=="engineering") %>
  <option value="engineering" selected>Engineering</option>
  <% else %>
    <option value="engineering">Engineering</option>
  <% end %>
  <% if (@group.faculty=="philology") %>
    <option value="philology" selected>Philology</option>
  <% else %>
    <option value="philology">Philology</option>
  <% end %>
  <% if (@group.faculty=="economics") %>
    <option value="economics" seleted>Economics</option>
  <% else %>
    <option value="economics">Economics</option>
  <% end %>

<% if (@group.faculty=="law") %>
  <option value="law" selected>Law</option>

  <% else %>
  <option value="law">Law</option>

  <% end %>

</select>	
<select name="course" placeholder="Faculty">
  <option value="1">1st Course</option>
  <option value="2">2nd Course</option>
  <option value="3">3rd Course</option>
  <option value="4">4th Course</option>
</select>	

<select name="userid" placeholder="Faculty">
	<% @advisors.each do |advisor| %>
	<option value="<%= advisor.id %>"> <%=advisor.name%> </option>
	<% end %>
</select>
</br>       			<button class="btn btn-medium btn-primary" type="submit">Save</button>

  	<% end %>
  </div>
  </div>
</div>


